DX11 SET OBJECT BUFFER

Assigns the given data buffer to the entire object so that it can be accessed by its shaders.
A buffer stage [0..7] can optionally be provided for a total of 8 data buffers per object (note that buffers, like textures, can be set on a per-limb level as well).
Take note that textures and buffers share the same resource registers on the GPU. Textures will be bound to registers t0 through t15, while
buffers are bound to registers t16 through t23.

  Syntax
DX11 SET OBJECT BUFFER object, buffer, [stage]
  Parameters
object
Dword
The object to set the buffer to.
buffer
Dword
A buffer to make available to the shaders used to render the given object. Set to nullptr (0) to remove the currently bound buffer from the given stage.
[Optional] stage
Dword
The buffer stage to set the buffer for; the valid range is [0..7]. Defaults to 0. The used shader register will be tX where X = 16 + the buffer stage number.

  Returns

This function does not return a value.

  See also

OBJECT Functions Menu
DX11 Function Categories